@extends('layouts.default')

@section('title')
设备返修列表
@stop

@section('pre')
<li class="active"><span>@yield('title')</span></li>
@stop

@section('content')
<div class="row">
    <div class="col-lg-12">
        <div class="main-box">
            <div class="row">
                <div class="col-lg-12">
                    <header class="main-box-header clearfix">
                        <h2 class="pull-left" id="group-table-title"></h2>
                        <div id="reportrange" class="pull-right daterange-filter">
                            <i class="icon-calendar"></i>
                            <span></span><b class="caret"></b>
                        </div>
                    </header>
                    <div class="main-box-body clearfix">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>
                                            <!-- <a href="#"><span></span></a> -->
                                            设备id
                                        </th>
                                        <th>
                                            <!-- <a href="#"><span></span></a> -->
                                            物流类型
                                        </th>
                                        <th>
                                            <!-- <a href="#"><span></span></a> -->
                                            物流单号
                                        </th>
                                        <th>
                                            物流费用
                                        </th>
                                        <th>
                                            状态
                                        </th>
                                        <td class="text-center">
                                            操作
                                        </td>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach( $datas as $v )
                                    <tr>
                                        <td>
                                            {{$v->device_ids}}
                                        </td>
                                        <td>
                                            {{$v->logistics}}
                                        </td>
                                        <td>
                                            {{$v->logistics_order}}
                                        </td>
                                        <td>
                                            {{$v->pay}}
                                        </td>
                                        <td>
                                            {{$status[$v->status]}}
                                        </td>
                                        <td class="text-center">
                                            <a type="button" class="btn btn-primary btn-xs md-trigger modal-info" data-modal="modal-info" href="{{URL::to('getRepair/'.$v->id)}}">
                                                <span class="fa fa-search"></span> 详情
                                            </a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        </div>
                        <div class="pull-right">
                            {!!$datas->render()!!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


@stop